package Java2024.hm;

/**
 * @Author zhangxuhui
 * @Date 2024/12/6
 * @email zxh_1633@163.com
 */
public class City {
    private String name;
    private int population;

    private ThreadLocal<String> num = new ThreadLocal<>();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPopulation() {
        return population;
    }

    public void setPopulation(int population) {
        this.population = population;
    }

    public String getNum() {
        return this.num.get();
    }

    public void setNum(String num) {
        this.num.set(num);
    }
}
